<template>
  <h1>计数器9:{{this.$store.state.helloWorld9.count2}}</h1>
  <button @click="increment">增加</button>
</template>
<script>
export default {
  methods:{
    increment(){ 
      this.$store.commit({
        type:'helloWorld9/incrementTwo',
        count: 5,
        root:true
      })
    }
  }
}
</script>